<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>施工组织设计智能编辑系统</title>
		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>
		<script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>
	</head>

	<body style="background-color: #F2F2F2">
		<div class="main-container" id="main-container">
					<ul class="nav nav-list">
						<li class="active" style="height:41px;" style="background-color: #F5F5F5">
							<a href="#">
								<i class="icon-da0shboard"></i>
								<span class="menu-text"> 首页 </span>
							</a>
						</li>
						@foreach($data as $key)
						@if($key->parentId == 1)
						@foreach($modules as $key2)
						@if($key->id == $key2)
						<li>
						  <a href="#" class="dropdown-toggle">
						   <img src="/icon/{{ $key->icon }}" />
						    <span class="menu-text" style="margin-left:15px;">{{ $key->name }}</span>
						    <b class="arrow icon-angle-down"></b>
						  </a>
						      <ul class="submenu">
						      @foreach($data as $key1)
									@if($key1->parentId == $key->id)
									@foreach($modules as $key2)
									@if($key1->id == $key2)
									<li>
										<a href="{{ $key1->href }}" target="right">
											<i class="icon-double-angle-right"></i>
											{{ $key1->name }}
										</a>
									</li>
									@endif
									@endforeach
									@endif
						      @endforeach
								</ul>
						</li>
						@endif
						@endforeach
						 @endif
						@endforeach
					</ul>
				</div>
</body>
</html>
